import axios from 'axios';
import qs from 'qs';

axios.defaults.baseURL = 'http://localhost:3000';

axios.defaults.withCredentials = true; // 跨域的时候，是否携带cookie

axios.interceptors.response.use(res => res.data);

export default axios;
